import java.io.Serializable;
import java.util.ArrayList;


/*****************************************************************************
 * File: PacketContainer.java
 * Author:  Todd Silvia & Phil Pilosi
 * Class:   CS 441 - Spring 2011
 * Project: 2 - Distributed Booking Agent, with RMI
 * Date:    February 28th 2011
 * Description: This object just holds any information that is going to be sent
 * 				over the network to/from the server.
 */

public class PacketContainer implements Serializable {
	
	private Event packetEvent;
	private Reservation packetReservation;
	private int packetNumber;
	private ArrayList<Event> packetListEvents;
	
	/******************** Constructors ********************/
	public PacketContainer(Event theEvent) {
		packetEvent = theEvent;
	}
	
	public PacketContainer(int theInt) {
		packetNumber = theInt;
	}
	
	public PacketContainer(Reservation theReservation) {
		packetReservation = theReservation;
	}
	
	public PacketContainer(ArrayList<Event> theList) {
		this.packetListEvents = theList;
	}
	
	
	/******************** Getters for all variables ********************/
	public Event getPacketEvent() {
		return this.packetEvent;
	}
	
	public Reservation getPacketReservation() {
		return this.packetReservation;
	}
	
	public int getPacketNumber() {
		return this.packetNumber;
	}
	
	public ArrayList<Event> getListEvents() {
		return this.packetListEvents;
	}
	
	
}//END PacketContainer{}
